bitkeeper revision 1.327 (3f0d2f89Nt6e8Pm941RkmAsgHZfdzA)
authorrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>
Thu, 10 Jul 2003 09:19:05 +0000 (09:19 +0000)
committerrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>
Thu, 10 Jul 2003 09:19:05 +0000 (09:19 +0000)
fix xenctl script for new command parser layout

tools/control/xenctl

index 17ec375aafb2b4207bd296461c52e584b5c69a25..3516bc2fc8a50b34d2414c1c64f632308dc43717 100755 (executable)
@@ -7,7 +7,7 @@ if [ -z "$IFCONFIG" ] ; then IFCONFIG=/sbin/ifconfig ; fi
 if [ -z "$ROUTE" ] ; then ROUTE=/sbin/route ; fi
 if [ -z "$JAVA" ] ; then JAVA=java ; fi
 
-if [ "$1" = "new" ] ; then
+if [ "$1" = "domain" -a "$2" = "new" ] ; then
   if [ ! -x "$IFCONFIG" ]; then  
     echo Could not find executable $IFCONFIG
     exit 1